package com.tedu.healthcounse.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class HealthCounseQuery {
    @ApiModelProperty(value = "文章ID")
    private Integer id;
    @ApiModelProperty(value = "文章标题")
    private String title;
    @ApiModelProperty(value = "发表人")
    private String username;
    @ApiModelProperty(value = "文章内容")
    private String content;
    @ApiModelProperty(value = "图片路径")
    private String imageUrl;
    @ApiModelProperty(value = "浏览数")
    private String viewCount;
    @ApiModelProperty(value = "评论数")
    private String commentNum;
    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "商品创建时间")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "商品修改时间")
    private Date updateTime;
}
